package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ZtbBiddingnotice;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ZtbBiddingnoticeVO;
import com.lingxu.api.ztb.model.vo.ZtbParagraphVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 * 招标公告表 Mapper接口
 *
 * @author admin
 * @since 2025-07-18
 */
@Mapper
public interface ZtbBiddingnoticeMapper extends BaseMapper<ZtbBiddingnotice> {
    /**
     * 查询招标公告表
     *
     * @return
     */
    List<ZtbBiddingnoticeVO> selectZtbBiddingnoticeList(@Param("query") ZtbBiddingnoticeVO vo);

    IPage<ZtbBiddingnoticeVO> pageList(@Param("page") Page<ZtbBiddingnoticeVO> page, @Param("query") ZtbBiddingnoticeVO vo);

    List<ZtbBiddingnoticeVO> getDataForExport(@Param("query") ZtbBiddingnoticeVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ZtbBiddingnoticeVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    ZtbBiddingnoticeVO getZtbBiddingnotice(@Param("query")ZtbParagraphVO query);

    IPage<ZtbBiddingnoticeVO> listBiddingnotice(@Param("page") Page<ZtbBiddingnoticeVO> page,@Param("query")ZtbParagraphVO query);

    IPage<ZtbBiddingnoticeVO> getZTBData (@Param("page") Page<ZtbBiddingnoticeVO> page,@Param("query")ZtbParagraphVO query);
}
